#include <unicode/ustream.h>
#include <unicode/unistr.h>

#include "string.h"

namespace Common
{

std::string toLowerCase(const std::string& value)
{
    icu::UnicodeString unicodeValue = icu::UnicodeString::fromUTF8(
        icu::StringPiece(value.data())
    );
    unicodeValue.toLower();

    std::string result;
    unicodeValue.toUTF8String(result);
    return result;
}

} // namespace Common
